package com.hu.zhcc.shiro.controller.Appointment;

import com.hu.zhcc.shiro.entity.Appointment.AReservation;
import com.hu.zhcc.shiro.service.Appointment.ReserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/****
 * 预约设置Controller
 */
@RestController
public class ResersetController {

    @Autowired
    private ReserService reserService;

    @GetMapping("findSertion")
    private List<AReservation> findSertion() {
        List<AReservation> stateByOne = reserService.findStateByOne();
        System.out.println(stateByOne);
        return stateByOne;
    }
}